﻿namespace NoDuplicateNumbers
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int count = 0;
            Console.WriteLine("所有三位数：");
            for (int i = 1; i <= 4; i++)
            {
                for (int j = 1; j <= 4; j++)
                {
                    for (int k = 1; k <= 4; k++)
                    {
                        if (i != j && i != k && j != k)
                        {
                            int n = i * 100 + j * 10 + k;
                            Console.WriteLine(n);
                            count++;
                        }
                    }
                }
            }
            Console.WriteLine("总共有 {0} 个三位数", count);
        }
    }
}
